package com.mer.controller;

import com.mer.service.OrderTeacherService;
import com.mer.vo.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: IIPhase-project
 * @description: 教师控制层
 * @author: 张庆恒
 * @create: 2021-10-22 20:17
 **/
@RestController
@RequestMapping("/order/teacher")
@Api(tags = "课程详情")
public class OrderTeacherController {
    @Resource
    private OrderTeacherService orderTeacherService;

    @ApiOperation("讲师详情查询模块")
    @PostMapping("/queryAllTeacherBYTeacherName/{teacherName}")
    public CommonResult queryAllTeacherBYTeacherName(@PathVariable("teacherName") @RequestBody String teacherName){
        return orderTeacherService.queryTeacherByTeacherName(teacherName);
    }
}
